﻿using Flame.Controls;
using Flame.Dlr;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace exe_flame_wincontrol
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("button clicked");
        }

        private void scriptingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Flame.Controls.ScripterControlForm f = new Flame.Controls.ScripterControlForm(
             new Flame.Controls.ScripterControlFormSettings(typeof(Flame.Scintilla.ScintillaNETInput), new Flame.Dlr.ManagerSettings(), "ipy" ),
             new ScopeParameters() { Variables = new List<Variable>() { new Variable() { Data = button1, Name = "button" } } });


            f.Load += (s, _e) =>
            {
                f.ScripterControlFormInfo.ScripterTabbedControl.NewTab();
                //f.ScripterControlFormInfo.ScripterTabbedControl.

                //GuiPluginLoader.LoadAll(PathsHelper.GetMainPath("GUI"), f.ScripterControlFormInfo);
            };

            f.Show();
        }
    }
}
